package cn.javapulzzer.exept;

class Dog {
	 static int i=10;
	public static   void bark() {
	System.out.print(i );
	System.out.println("  woof ");
	}
	}
	class Basenji extends Dog {
	public static void bark() {  
		System.out.println("Basenji");
	}
	}
	public class Bark {
	public static void main(String args[]) {
	Dog woofer = new Dog();
	Dog nipper = new Basenji();
	
	  nipper.i=23;
	 woofer.bark();
	 woofer.i=13;
	  nipper.bark();
	  
	}
	}